package dreamdancetiktokmodelmysql

import (
	"gorm.io/gorm"
	"time"
)

// 活动条件表
type DanceActivitiesConditions struct {
	Id                int64          `gorm:"primaryKey;autoIncrement;comment:id" json:"id"`
	Name              string         `json:"name" gorm:"column:name;type:varchar(256);not null;default:'';comment:套装-运营人员填写"`                 // 元素名字-运营人员填写
	StartTime         int64          `json:"startTime" gorm:"column:start_time;type:bigint;default:0;not null;comment:更新人id"`                 // 开始时间
	EndTime           int64          `json:"endTime" gorm:"column:end_time;type:bigint;default:0;not null;comment:更新人id"`                     // 结束时间
	DanceActivitiesId int64          `json:"danceActivitiesId" gorm:"column:dance_activities_id;type:bigint;default:0;not null;comment:活动id"` // 活动id
	ConditionsType    int64          `json:"conditionsType" gorm:"column:conditions_type;type:bigint;default:0;not null;comment:活动类型"`        // 1:累计消费x天;2:累计消费x音浪;3:x礼物;4:礼物数量;
	ConditionsValue   int64          `json:"conditionsValue" gorm:"column:conditions_value;type:bigint;default:0;not null;comment:活动值"`       // 活动id
	UpdateId          int64          `json:"update_id" gorm:"column:update_id;type:bigint;default:0;not null;comment:更新人id"`                  // 更新人id
	CreatedAt         time.Time      `json:"created_at" gorm:"column:created_at;type:datetime"`
	UpdatedAt         time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime"`
	DeletedAt         gorm.DeletedAt `gorm:"index;type:datetime" json:"-"`
}
